package com.gs.remoting;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

public class AccountServiceImpl implements AccountService {

	List<Account> accounts = new ArrayList<Account>();
	
	public void insertAccount(Account account) {
		System.out.println("Inserting new account...");
		accounts.add(account);
	}

	public List<Account> getAccounts(String name) {
		System.out.println("Returning all accounts...");
		return accounts;
	}

}
